package com.hhsjdesign.dynamicui.utils

import com.hhsjdesign.dynamicui.interfaces.RequestListener
import com.hhsjdesign.dynamicui.core.widgetimpl.IWidget

/**
 * 数据请求对象 类似于 Model
 */
abstract class DataCaller<T>(businessType: String) {

    open abstract fun loadData(
        businessType: String,
        businessParams: String,
        widget: IWidget,
        listener: RequestListener<Any>
    )

    open fun cancelLoad() {

    }
}